<?php
namespace App\Http\Controllers\Customer;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Http\Query\GoodsDetailQuery;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Cookie;

class JapanInvoiceDownloadController extends Controller
{


    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function invoice_download(Request $request)
    {
        $user_id = Cookie::get('user_id');
        $list = DB::table('download_file_master')->where(['user_id'=>$user_id])->get();
        return view('customer.invoice_download', array(
            'list' => $list,
        )); // 返回视图
    }

}
